<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Page Two</title>
</head>
<body bgcolor="pink">
	<%
		if (!request.getParameter("user").equals("")) {
			String username = request.getParameter("user");
			String password = request.getParameter("pass");
			response.sendRedirect("pageThree.jsp");
			//String pageURL = "pageThree.jsp?username=" + username + "&password=" + password;
			//response.sendRedirect(pageURL);
		}
		else {
		out.println("Hello from Page Two.");		
		}
	%>
	Please <a href="pageOne.jsp"> click here </a> to input username and password.
</body>
</html>